package com.dingding.common.core.beans;

import java.math.BigDecimal;
import java.util.Date;

import com.dingding.common.core.util.paravalidate.CanNull;

/**
 * 
 * @ClassName: SyncOrder 
 * @Description: 订单同步表 
 * @author CHEHAUNBO 
 * @date 2016年7月26日 上午11:28:15
 * 
 */
public class SyncOrder {

	private String soId; 			// 主键ID

	private String telPhone; 		// 手机号

	private String startAddress; 	// 起始地

	private String endAddress; 		// 目的地

	private Date setOutTime; 		// 出发时间
	
	private Date orderTime; 		// 下单时间

	@CanNull
	private BigDecimal distance; 		// 距离

	@CanNull
	private BigDecimal totalMoney; 		// 订单总额

	@CanNull
	private String placeOrderCity; 	// 下单城市

	@CanNull
	private Integer number; 		// 人数

	@CanNull
	private Integer isCarShare; 	// 是否合乘（1：合乘   2：不合乘）

	@CanNull
	private Integer driverType; 	// 司机类型（1：私家车    2：出租车）
	
	private Integer isPublished; 	// 是否被发单(1:被发单   0:未被发)
	
	private Integer publisherType;	//发单人类型 (1:司机发单   2:乘客发单)

	public SyncOrder(String soId, String telPhone, String startAddress, String endAddress, Date setOutTime,
			Date orderTime, BigDecimal distance, BigDecimal totalMoney, String placeOrderCity, Integer number,
			Integer isCarShare, Integer driverType, Integer isPublished, Integer publisherType) {
		super();
		this.soId = soId;
		this.telPhone = telPhone;
		this.startAddress = startAddress;
		this.endAddress = endAddress;
		this.setOutTime = setOutTime;
		this.orderTime = orderTime;
		this.distance = distance;
		this.totalMoney = totalMoney;
		this.placeOrderCity = placeOrderCity;
		this.number = number;
		this.isCarShare = isCarShare;
		this.driverType = driverType;
		this.isPublished = isPublished;
		this.publisherType = publisherType;
	}

	public SyncOrder() {
		super();
	}

	public String getSoId() {
		return soId;
	}

	public void setSoId(String soId) {
		this.soId = soId;
	}

	public String getTelPhone() {
		return telPhone;
	}

	public void setTelPhone(String telPhone) {
		this.telPhone = telPhone;
	}

	public String getStartAddress() {
		return startAddress;
	}

	public void setStartAddress(String startAddress) {
		this.startAddress = startAddress;
	}

	public String getEndAddress() {
		return endAddress;
	}

	public void setEndAddress(String endAddress) {
		this.endAddress = endAddress;
	}

	public Date getSetOutTime() {
		return setOutTime;
	}

	public void setSetOutTime(Date setOutTime) {
		this.setOutTime = setOutTime;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public BigDecimal getDistance() {
		return distance;
	}

	public void setDistance(BigDecimal distance) {
		this.distance = distance;
	}

	public BigDecimal getTotalMoney() {
		return totalMoney;
	}

	public void setTotalMoney(BigDecimal totalMoney) {
		this.totalMoney = totalMoney;
	}

	public String getPlaceOrderCity() {
		return placeOrderCity;
	}

	public void setPlaceOrderCity(String placeOrderCity) {
		this.placeOrderCity = placeOrderCity;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Integer getIsCarShare() {
		return isCarShare;
	}

	public void setIsCarShare(Integer isCarShare) {
		this.isCarShare = isCarShare;
	}

	public Integer getDriverType() {
		return driverType;
	}

	public void setDriverType(Integer driverType) {
		this.driverType = driverType;
	}

	public Integer getIsPublished() {
		return isPublished;
	}

	public void setIsPublished(Integer isPublished) {
		this.isPublished = isPublished;
	}

	public Integer getPublisherType() {
		return publisherType;
	}

	public void setPublisherType(Integer publisherType) {
		this.publisherType = publisherType;
	}
	
}
